<template>
	
	<picker mode="date"  @change="change" :disabled="disabled">
		<view class="">
			<text :class="model?'c3':'c9'">
			{{model || '请选择'}}
			</text>
			<text class="icon-xiangyou1 iconfont ml10"></text>
		</view>
	</picker>

	
	
	
</template>

<script setup lang="ts">
	import { computed } from 'vue';
		
		
	let emit = defineEmits(['update:modelValue'])
	
	let props = defineProps({
		modelValue:{
			type:String,
			default:''
		},
		disabled:{
			type:Boolean,
			default:false
		}
	})
	
	
	let model = computed({
		get(){
			return props.modelValue
		},
		set(val){
			emit('update:modelValue',val)
		}
	})
	
	
	const change =(e)=>{
		model.value = e.detail.value
	}
	
	
</script>

<style scoped lang="scss">
	
	
	
</style>